package cn.wolfcode.trip.base.domain;


import lombok.Getter;
import lombok.Setter;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
//游记的点赞与收藏
public class TravelConcern extends BaseDomain{
    //所关联的游记
    private Travel travel;
    //点赞人
    private User liker;
    //收藏人
    private User collector;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date likeDate;//被点赞时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date collectDate;//被收藏时间
    private boolean isViewed;//是否被查看

}